package com.boomkeeper.core.utils;

import java.io.File;

public class ArchiveUtils {

	public static String getContextRootName(File warFile) {
		String contextRootName = null;
		
		switch (warFile.getName()) {
		case "ltePortal.war":
			contextRootName = "/provPortal";
			break;
		case "portalService.war":
			contextRootName = "/portalService";
			break;
		case "unifyLogin.war":
			contextRootName = "/ltePortal";
			break;
		case "appPortal.war":
			contextRootName = "/provPortal(生产环境)/appPortal(测试环境)";
			break;
		default:
			break;
		}
		
		return contextRootName;
	}
}
